<template>
  <div class="pinjia-box">
    <div class="content">
      <div>
        <div class="pinjia-li"
             @click="lakai">
          <div class="pinjia-left">
            <img src="https://img1.baidu.com/it/u=588845867,1784669083&fm=26&fmt=auto"
                 alt="" />
          </div>
          <div class="pinjia-right">
            <div class="pinjia-user">
              <span>SpeadFed</span>
              <span>12分钟前</span>
            </div>
            <div class="pinjia-text">
              <p>旅游感悟常人说:“不登山，不知山高;不涉水，不晓水深;不赏奇景，怎知其绝妙。”“读万卷书，还须行万里路。”只有亲身实践，身临其境，才有切身体会。登高一望，才会领略到杜甫“会当凌绝顶，一览众山小”的气魄;驻足山中，才会感受到鲁迅先生“躲进小楼成一统，管他春夏与秋冬”的奥秘;跋山涉水，才能体会到李白“五岳寻仙不辞迈，一生好入名山游”的追求。一旦大自然别样的风景去占据视野和思想，你会觉得，生活并不总是乏味，一切都是那么完美，处处充满阳光。</p>
            </div>
            <div>
              <span class="iconfont icon-dianzan">135</span>
              <span class="iconfont icon-xihuan">246</span>
            </div>
          </div>
        </div>
        <div class="huifu"
             v-show="isShow">
          <div class="pinjia-li">
            <div class="pinjia-left">
              <img src="https://img1.baidu.com/it/u=360776017,3260181127&fm=26&fmt=auto"
                   alt="" />
            </div>
            <div class="pinjia-right">
              <div class="pinjia-user">
                <span>SpeadFed</span>
                <span>12分钟前</span>
              </div>
              <div class="pinjia-text">
                <p>旅游感悟常人说:“不登山，不知山高;不涉水，不晓水深;不赏奇景，怎知其绝妙。”“读万卷书，还须行万里路。”只有亲身实践，身临其境，才有切身体会。登高一望，才会领略到杜甫“会当凌绝顶，一览众山小”的气魄;驻足山中，才会感受到鲁迅先生“躲进小楼成一统，管他春夏与秋冬”的奥秘;跋山涉水，才能体会到李白“五岳寻仙不辞迈，一生好入名山游”的追求。一旦大自然别样的风景去占据视野和思想，你会觉得，生活并不总是乏味，一切都是那么完美，处处充满阳光。</p>
              </div>
              <div>
                <span class="iconfont icon-dianzan">135</span>
                <span class="iconfont icon-xihuan">246</span>
              </div>
            </div>
          </div>
          <div class="pinjia-li">
            <div class="pinjia-left">
              <img src="https://img2.baidu.com/it/u=3412174234,2921485221&fm=26&fmt=auto"
                   alt="" />
            </div>
            <div class="pinjia-right">
              <div class="pinjia-user">
                <span>SpeadFed</span>
                <span>12分钟前</span>
              </div>
              <div class="pinjia-text">
                <p>旅游感悟常人说:“不登山，不知山高;不涉水，不晓水深;不赏奇景，怎知其绝妙。”“读万卷书，还须行万里路。”只有亲身实践，身临其境，才有切身体会。登高一望，才会领略到杜甫“会当凌绝顶，一览众山小”的气魄;驻足山中，才会感受到鲁迅先生“躲进小楼成一统，管他春夏与秋冬”的奥秘;跋山涉水，才能体会到李白“五岳寻仙不辞迈，一生好入名山游”的追求。一旦大自然别样的风景去占据视野和思想，你会觉得，生活并不总是乏味，一切都是那么完美，处处充满阳光。</p>
              </div>
              <div>
                <span class="iconfont icon-dianzan">135</span>
                <span class="iconfont icon-xihuan">246</span>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Dis",
  data () {
    return {
      dataUser: [],
      isShow: false,
    }
  },
  // mounted () {
  //   this.ajax({
  //     method: "get",
  //     url: "/queryAlluser",
  //   }).then((res) => {
  //     this.dataUser = res.data;
  //     console.log(this.dataUser);
  //   });
  // },

  methods: {
    lakai () {
      this.isShow = !this.isShow;
    }
  }
}
</script>

<style lang="scss" scoped>
@import "https://at.alicdn.com/t/font_2877559_mhrkss1z97.css?spm=a313x.7781069.1998910419.46&file=font_2877559_mhrkss1z97.css";

.content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  > div {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    .huifu {
      width: 80%;
    }
  }
}

.pinjia-li {
  height: 130px;
  display: flex;
  justify-content: space-evenly;

  .pinjia-left {
    width: 10%;
    img {
      width: 100%;
      margin-right: 5px;
      border-radius: 50%;
    }
  }
  .pinjia-right {
    width: 80%;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #e4e4e4;

    .pinjia-user {
      height: 16%;
      display: flex;
      justify-content: space-between;
      align-items: center;

      span {
        color: #323232;
      }
    }

    .pinjia-text {
      margin: 6px 0px;
      height: 65px;
      // overflow: scroll;
      p {
        height: 100%;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        text-overflow: ellipsis;
        overflow: hidden;
      }
    }
  }
}
</style>